/**
 * Created by YanQi on 2016/9/8.
 */
var CheckString = {
    isNumeric: function(str) {
        var obj_reg = new RegExp(/^\d+$/);
        return obj_reg.test(str);
    },
    isEmail: function (str) {
        var obj_reg = new RegExp(/^[a-zA-Z0-9&\-_.]+@[\w\-_]+([\w\-.]+)?\.[\w\-]+$/);
        return obj_reg.test(str);
    },
    isPhone: function (str) {
        var obj_reg = new RegExp(/^1[3-9]\d{9}$/);
        return obj_reg.test(str);
    }
};